package com.bsoft.wx.vo;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author hdh
 * @ Data   :Created in 14:13 2023/2/12
 * @ Description 注册vo
 * @ Modified By: hdh
 * @ Version : 1.0
 */
@Data
@ApiModel
public class RegisterFrom {
    @NotBlank(message = "注册码不能为空")
    @Pattern(regexp = "^[0-9]{6}$", message = "注册码必须是6位数字")
    private String registerCode;
    @NotBlank(message = "微信临时授权不能为空")
    private String code;
    @NotBlank(message = "昵称不能为空")
    private String nickname;
    @NotBlank(message = "头像不能为空")
    private String photo;

}
